package kalkulacka;

interface IKalkul
{
	boolean setName(String name);

	double soucet(double c1, int c2);

	int soucin(int c1, double c2);

	String getName();
}

public class Kalkul implements IKalkul
{
	private String name = "";

	@Override
	public boolean setName(String name)
	{
		this.name = name;
		return getName() == name;
	}

	@Override
	public double soucet(double c1, int c2)
	{
		return c1 + c2;
	}

	@Override
	public int soucin(int c1, double c2)
	{
		return (int) (c1 * c2);
	}

	@Override
	public String getName()
	{
		return name;
	}

}
